#! /usr/bin/env python
# -*- coding: utf-8 -*-

from time import time


def time_decorator(func):
    def wrapper(*args, **kwargs):
        begin = time()

        result = func(*args, **kwargs)

        span = time() - begin
        print('passwd %s' % span)
        return result

    return wrapper


@time_decorator
def main():
    print("start main")


if __name__ == "__main__":
    main()
